{template 'header'}
<div class="m">
<div class="m_l_1 f_l">
	<div class="left_box">
		<div class="pos">当前位置: <a href="{DT_PATH}">首页</a>
		&raquo; <a href="{$MOD[linkurl]}">{$MOD[name]}</a>
		{if $typeid!=99}&raquo; <a href="{$MOD[linkurl]}{rewrite('index.php?typeid='.$typeid)}">{$TYPE[$typeid]}</a>{/if}
		{if $catid}&raquo; {cat_pos($CAT, ' &raquo; ')}{/if}
		</div>
		<!--求购分类-->
		<div class="b10">&nbsp;</div>
				<div class="search_type">
		<div class="typetitle">已选条件：</div>
		<?php
			$str = '';
			//print_r($CAT);
			if($catid)
			{
				if($CAT['child'])
				{
				$str .= "<span>类别:<a href='".DT_PATH."buy/'>".$CAT['catname']."</a></span>";	
				}
				else{
				$str .= "<span>类别:<a href='".DT_PATH."buy/list.php?catid=".$CAT['parentid']."&rlevel=".$rlevel."&surface=".$surface."&standard=".$typeid."'>".$CAT['catname']."</a></span>";	
				}
			}  
			if($typeid!=99 || $typeid==='0')
			{
				$str .= "<span>标准:<a href='".DT_PATH."buy/index.php?rlevel=".$rlevel."&surface=".$surface."&typeid='>".$TYPE[$typeid]."</a></span>";	
			} 
		?>
			{$str}
		</div>
		<div class="sell_search" id="PropSingle">
			
			<dl>
				<dt>类别:</dt>
				<dd class="AttrBox AttrBoxt">
				{loop $maincat $k $v}
				<a href="{$MOD[linkurl]}{$v[linkurl]}&rlevel={$rlevel}&surface={$surface}&typeid={$typeid}">{$v['catname']}({$v[item]})</a>
				{/loop}
				</dd>
			</dl>
			<dl>
				<dt>标准:</dt>
				<dd class="AttrBox AttrBoxtbz">
				{loop $TYPE $k $v}
				<a href="{$MOD[linkurl]}index.php?rlevel={$rlevel}&surface={$surface}&typeid={$k}">{$v}</a>
				{/loop}
				</dd>
			</dl>
		</div>
		
		<div class="b10 c_b">&nbsp;</div>		
		<div class="img_tip" id="img_tip" style="display:none;">&nbsp;</div>
		{if $page == 1}{ad($moduleid,0,'',6)}{/if}		<!--{tag("moduleid=$moduleid&condition=status=3$dtype&catid=$catid&areaid=$cityid&pagesize=".$MOD[pagesize]."&page=$page&showpage=1&datetype=5&order=".$MOD[order]."&fields=".$MOD[fields]."&template=list-buy")}-->
	<br/>
	</div>
</div>
<div class="m_n f_l">&nbsp;</div>
<div class="m_r_2 f_l">
	<div class="sponsor">{ad($moduleid,$catid,$kw,7)}</div>
	<div class="m_r_wsearch">
	<div class="box_head_new1"><div><strong>本周搜索排行</strong></div></div>
	<div class="box_body">
		<div class="rank_list_new">
			<!--{tag("moduleid=$moduleid&table=keyword&condition=moduleid=$moduleid and status=3 and updatetime>$today_endtime-86400*7&pagesize=10&order=week_search desc&key=week_search&template=list-search_rank", -2)}-->
		</div>		
	</div>
	</div>
	<div class="b10">&nbsp;</div>
	<div class="m_r_wsearch2">
	<div class="box_head_new2"><div><strong>按地区浏览</strong> 更多>>&nbsp;</div></div>
	<div class="box_body_area">
			<table width="100%" cellpadding="3">
			{php $mainarea = get_mainarea(0, $AREA)}
			{loop $mainarea $k $v}
		        {if $k%4==0}<tr bgcolor="#c0d7eb">
		        {elseif $k%2==0}<tr>{/if}
			<td height="25px"><a href="{$MOD[linkurl]}{rewrite('search.php?areaid='.$v['areaid'].'&typeid='.$typeid)}">{$v[areaname]}</a></td>
			{if $k%2==1}</tr>{/if}
			{/loop}
			</table>
	</div>
	</div>
</div>
</div>
{template 'footer'}
<script>
	$(function(){
			//筛选菜单展开收起
		$("#PropSingle dd.AttrBoxt").each(function(){
			var len = $(this).children().length;
			if(len >11){
				$(this).before("<dd class='more cu'>更多</dd>");
				var category = $(this).children('a:gt(10)'),moreBtn = $(this).siblings(".more");
				category.hide();
				moreBtn.click(function(){
					if(category.is(":visible")){
						category.hide();
						moreBtn.removeClass("on").text("更多");
					}else{
						category.show();
						moreBtn.addClass("on").text("隐藏");
					}
				})
			}
		})
			$("#PropSingle dd.AttrBoxtbz").each(function(){
			var len = $(this).children().length;
			if(len >9){
				$(this).before("<dd class='more cu'>更多</dd>");
				var category = $(this).children('a:gt(8)'),moreBtn = $(this).siblings(".more");
				category.hide();
				moreBtn.click(function(){
					if(category.is(":visible")){
						category.hide();
						moreBtn.removeClass("on").text("更多");
					}else{
						category.show();
						moreBtn.addClass("on").text("隐藏");
					}
				})
			}
		})
		
	});/**/
</script>